UPDATED VERSION ALLOWS FOR HTTPS CHECK AS WELL
FOR HTTP:
nmap -p80 <target-ip> --script exchange-vuln-check.nse
FOR HTTPS:
nmap -p443 <target-ip> --script exchange-vuln-check.nse
SAVE RESULTS IN A FILE
nmap -p80 <target-ip> --script exchange-vuln-check.nse -oN results.txt
Microsoft Exchange Server Remote Code Execution Vulnerability.
nmap -p <port> --script vuln-CVE-2022-41082 <target>